GraphError

data class GraphError(val message: String?, val path: List<Any>? = null, val locations: List<GraphError.Location>? = null, val extensions: Map<String, Any?>? = null)

GraphQL error representation that is spec complaint

Parameters

message

Description of the error.

path

Path of the the response field that encountered the error, as segments that represent fields should be strings, and path segments that represent list indices should be 0‐indexed integers. If the error happens in an aliased field, the path to the error should use the aliased name, since it represents a path in the response, not in the query.

locations

List of locations within the GraphQL document at which the exception occurred.

extensions

Additional information about the error.

See also

Constructors

Link copied to clipboard
constructor(message: String?, path: List<Any>? = null, locations: List<GraphError.Location>? = null, extensions: Map<String, Any?>? = null)

Types

Link copied to clipboard
data class Location(val line: Int, val column: Int)

Location describing which part of GraphQL document caused an exception.

Properties

Link copied to clipboard
val extensions: Map<String, Any?>? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val path: List<Any>? = null

Functions

Link copied to clipboard
open override fun toString(): String